package com.ai.nsa.utils.pool;

import org.apache.commons.pool2.impl.GenericObjectPoolConfig;

import java.io.Serializable;

/**
 * @author Feng Chen 2017/6/7.
 */
public class PoolConfig extends GenericObjectPoolConfig implements Serializable {

    public PoolConfig() {
        setTestWhileIdle(true);
        setMinEvictableIdleTimeMillis(60000);
        setTimeBetweenEvictionRunsMillis(30000);
        setNumTestsPerEvictionRun(-1);
    }



}
